package com.xy.helloworld02;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * projectName:BK-2109
 * author:xiaoyang
 * time:2022/3/9 10:26
 * description:
 */
@RestController
public class HelloController {

    @Autowired
    private User user;

    @RequestMapping("/say")
    public String hello(){

        System.out.println(user);
        return "hello";
    }
}
